﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using Fishing.Dal;
using Fishing.Model;

namespace Fishing.Admin
{
    public partial class left : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["UserID"] != null)
                {
                    lbUserID.Text = Session["UserID"].ToString();
                }
            }
        }

        public void BindData()
        {
            string user = Session["UserID"].ToString();
            string html = "";
            SSEnumDal _dal = new SSEnumDal();
            List<ss_enum> list = _dal.GetMenuByuserID(0, user);
            foreach (ss_enum t in list)
            {
                html += "<li class='nav'><a href='#>"+t.enumName+"</a>";
                //<ul class="navcontent">
                //< li style = "margin-top: 10px" > 文创商户01 </ li >
                //< li > 文创商户02 </ li >
               //< li > 文创商户03 </ li >
               //</ ul >
            }
            //
        }

    }
}